import request from '@/utils/request'
// import qs from 'qs'
export function login(data) {
  return request({
    url: '/api/tbill/user/login',
    method: 'post',
    data
  })
}
export function regis(data) {
  return request({
    url: '/api/tbill/user/regis',
    method: 'post',
    data
  })
}
export function logout(data) {
  return request({
    url: '/api/tbill/user/logout',
    method: 'post',
    data
  })
}
export function getInfo() {
  return request({
    url: '/api/tbill/user/getInfo',
    method: 'post',
  })
}
export function getMenu(data) {
  return request({
    url: '/test',
    method: 'get',
    data
  })
}
export function selectById(param) {
  return request({
    url: '/api/tbill/user/selectById',
    method: 'get',
    params: param
  })
}
export function listPage(param) {
  return request({
    url: '/api/tbill/user/listPage',
    method: 'get',
    params: param
  })
}
export function addUser(data) {
  return request({
    url: '/api/tbill/user/add',
    method: 'post',
    data:data
  })
}
export function deleteById(param) {
  return request({
    url: '/api/tbill/user/deleteById',
    method: 'post',
    params: param
  })
}
export function updateById(data) {
  return request({
    url: '/api/tbill/user/updateById',
    method: 'post',
    data: data
  })
}
export function loDeleteById(param) {
  return request({
    url: '/api/tbill/user/LoDeleteById',
    method: 'post',
    params: param
  })
}
export function listUser(data) {
  return request({
    url: '/api/tbill/user/listUser',
    method: 'post',
    data
  })
}
export function getTeamListByUser(param) {
  return request({
    url: '/api/tbill/user/getTeamListByUser',
    method: 'post',
    params: param
  })
}
export function getUser(data) {
  return request({
    url: '/api/tbill/user/getUser',
    method: 'post',
    data
  })
}